<template>
  <div class="container">

    <Category title="游戏">
<!--    <template scope="games"> 后展示的样式有问题 -->
      <template slot-scope="{games}">
        <ul>
          <li v-for="(item,index) in games" :key="index">{{ item }}</li>
        </ul>
      </template>
    </Category>
    <Category title="游戏">
      <template scope="{games}">
        <ol>
          <li v-for="(item,index) in games" :key="index">{{ item }}</li>
        </ol>
      </template>

    </Category>
    <Category title="游戏">
      <template v-slot="{games}">
        <h4 v-for="(item,index) in games" :key="index">{{ item }}</h4>
      </template>

    </Category>


  </div>

</template>

<script>
//引入组件

import Category from "@/components/Category.vue";

export default {
  name: 'App',
  components: {Category},



}
</script>

<style scoped>
.container, .foot, h4 {
  display: flex;
  /*主轴对其方式*/
  justify-content: space-around;
}

video {
  width: 100%;
}

img {
  width: 100%;
}

h4 {
  text-align: center;
}
</style>
<script setup>
</script>
<script setup>
</script>